package com.nercel.dsj.gksales.config;

import lombok.Data;

@Data
public class ApiServerException extends RuntimeException {
    private String code;
    private String message;
    private String[] messagePrams;

    public ApiServerException(){}

    public ApiServerException(String code){
        this.code = code;
    }

    public ApiServerException(String code,String message){
        this.code = code;
        this.message = message;
    }

    public ApiServerException(String code,String[] messagePrams){
        this.code = code;
        this.messagePrams = messagePrams;
    }

    public ApiServerException(String code,String message,String[] messagePrams){
        this.code = code;
        this.message = message;
        this.messagePrams = messagePrams;
    }
}
